Computerized medication delivery unit